package com.eagle.zstudy.suanfa;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class ZZ1 {
	private final Lock lock = new ReentrantLock();
	
	
	public static ZZ1 getSingle(){
		return BB.z;
	}
	
	public static int t = 0;
	
	public static void main(String[] args) {
		System.out.println( ZZ1.t );
		System.out.println( ZZ1.getSingle() );
	}
	
	public static  class BB{
		public static ZZ1 z = new ZZ1();
	}
	

	public void current(){
		lock.lock();
		try {
			//8888888
			
			
		} catch (Exception e) {
			// TODO: handle exception
		}finally{
			lock.unlock();
			
		}
		
	}
}
